<?php
/*
 *   config.php - Main Configuration file for Indexer
 * 	 Copyright 2011 Saravana Kumar.A <saravanakumar.a.o@gmail.com>
 * 
 ************************************************************
 * IMPORTANT: 
 * If you don't want others to access files except from
 * Indexer, please copy the 'sample.htaccess' file in 'others'
 * folder to the folder and rename it to '.htaccess'.
 * Note: (Do not do this on indexer installation folder)
 ************************************************************/



/********************
 * Main Section
 ********************/
 
	session_start();
  
  //Location
  //$Location = "http://users.davinciwheels.in";
  $Location = "http://localhost/Indexer_Jquery";
  
  if(!isset($_SESSION['user'])||$_SESSION['user'] == '') {
		@header("Location: $Location/apps/login/login.php");
		exit;
	}
  
  // Page Title
  $Title='Your Inbox';

  // Default Message
  $Message="User's site for davinciwheels.in";

  //Root Directory (No trialing slashes)
  $Root_dir = $_SESSION['dir'];
  $User = $_SESSION['user'];
  $Fullname = $_SESSION['fullname'];

  // Do not show these files
  $Exceptions=array('.', '..', '.htaccess');

  /**********************
  * Downloads Section
  **********************/

  // Allowed Domains
  // $AllowedDomains=array('example.com', 'test.whatever.com');
  // Set false to allow all domains
  $AllowedDomains=false; //array('davinciwheels.in', 'downloads.davinciwheels.in');

  // Allowed Filetypes [Set false to allow all files]
  $AllowedFileTypes=false; //array ( 'xml', 'zip', '7z', 'gz', 'js', 'jpeg', 'mp3', 'mp4','3gp', 'pdf', 'doc', 'xls', 'jpg', 'exe', 'txt');

  // Log Downloads?
  $LogDownloads=true;

?>
